package com.drinking.consumerfeign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("provider")
public interface ProviderService {

    @RequestMapping("/test")
    String test();

    @RequestMapping("/test/{id}/{name}")
    String test2(@PathVariable String id, @PathVariable String name);

    @RequestMapping("/test04")
    String test3(@RequestParam String id, @RequestParam String name);


}
